home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 August: Tool Chest / Dev.CD Aug 95 TC / Dev.CD Aug 95 TC.toast / Tool Chest / Interfaces / UniversalInterfaces 2.1B1 / AIncludes / Windows.a < prev    next >
Encoding:
Text File  |  1995-04-18  |  15.7 KB  |  712 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        Windows.a
  3. ;
  4. ;    Contains:    Window Manager Interfaces.
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Package:    Universal Interfaces 2.1ß1 in “MPW Prerelease” on ETO #17
  8. ;
  9. ;    Copyright:    © 1984-1995 by Apple Computer, Inc.
  10. ;                All rights reserved.
  11. ;
  12. ;    Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13. ;                stack.  Include the file and version information (from above)
  14. ;                in the problem description and send to:
  15. ;                    Internet:    apple.bugs@applelink.apple.com
  16. ;                    AppleLink:    APPLE.BUGS
  17. ;
  18. ;
  19.  
  20.     IF &TYPE('__WINDOWS__') = 'UNDEFINED' THEN
  21. __WINDOWS__ SET 1
  22.  
  23.  
  24.     IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
  25.     include 'Types.a'
  26.     ENDIF
  27. ;        include 'ConditionalMacros.a'                                ;
  28.  
  29.     IF &TYPE('__MEMORY__') = 'UNDEFINED' THEN
  30.     include 'Memory.a'
  31.     ENDIF
  32. ;        include 'MixedMode.a'                                        ;
  33.  
  34.     IF &TYPE('__QUICKDRAW__') = 'UNDEFINED' THEN
  35.     include 'Quickdraw.a'
  36.     ENDIF
  37. ;        include 'QuickdrawText.a'                                    ;
  38.  
  39.     IF &TYPE('__EVENTS__') = 'UNDEFINED' THEN
  40.     include 'Events.a'
  41.     ENDIF
  42. ;        include 'OSUtils.a'                                        ;
  43.  
  44.     IF &TYPE('__CONTROLS__') = 'UNDEFINED' THEN
  45.     include 'Controls.a'
  46.     ENDIF
  47. ;        include 'Menus.a'                                            ;
  48.  
  49. kStandardWindowDefinition        EQU        0                    ; for document windows and dialogs
  50. kRoundWindowDefinition            EQU        1                    ; old da-style window
  51. kFloatingWindowDefinition        EQU        124                    ; for floating windows
  52.  
  53. ;####################################################################################
  54. ;
  55. ; Window Variant Codes
  56. ;
  57. ;####################################################################################
  58. ; for use with kStandardWindowDefinition 
  59. kModalDialogVariantCode            EQU        1
  60. kMovableModalDialogVariantCode    EQU        5
  61. ; for use with kFloatingWindowDefinition 
  62. kSideFloaterVariantCode            EQU        8
  63.  
  64. ;####################################################################################
  65. ;
  66. ; Old-style procIDs.  For use only with New(C)Window
  67. ;
  68. ;####################################################################################
  69. documentProc                    EQU        0
  70. dBoxProc                        EQU        1
  71. plainDBox                        EQU        2
  72. altDBoxProc                        EQU        3
  73. noGrowDocProc                    EQU        4
  74. movableDBoxProc                    EQU        5
  75. zoomDocProc                        EQU        8
  76. zoomNoGrow                        EQU        12
  77. rDocProc                        EQU        16
  78. ; floating window defproc ids 
  79. floatProc                        EQU        1985
  80. floatGrowProc                    EQU        1987
  81. floatZoomProc                    EQU        1989
  82. floatZoomGrowProc                EQU        1991
  83. floatSideProc                    EQU        1993
  84. floatSideGrowProc                EQU        1995
  85. floatSideZoomProc                EQU        1997
  86. floatSideZoomGrowProc            EQU        1999
  87.  
  88. ;####################################################################################
  89. ;
  90. ; Standard window kinds
  91. ;
  92. ;####################################################################################
  93. dialogKind                        EQU        2
  94. userKind                        EQU        8
  95. kDialogWindowKind                EQU        2
  96. kApplicationWindowKind            EQU        8
  97.  
  98. ;####################################################################################
  99. ;
  100. ; FindWindow result codes
  101. ;
  102. ;####################################################################################
  103. inDesk                            EQU        0
  104. inMenuBar                        EQU        1
  105. inSysWindow                        EQU        2
  106. inContent                        EQU        3
  107. inDrag                            EQU        4
  108. inGrow                            EQU        5
  109. inGoAway                        EQU        6
  110. inZoomIn                        EQU        7
  111. inZoomOut                        EQU        8
  112.  
  113. wDraw                            EQU        0
  114. wHit                            EQU        1
  115. wCalcRgns                        EQU        2
  116. wNew                            EQU        3
  117. wDispose                        EQU        4
  118. wGrow                            EQU        5
  119. wDrawGIcon                        EQU        6
  120.  
  121. deskPatID                        EQU        16
  122.  
  123. ;####################################################################################
  124. ;
  125. ; Window Definition hit test result codes ("WindowPart")
  126. ;
  127. ;####################################################################################
  128. wNoHit                            EQU        0
  129. wInContent                        EQU        1
  130. wInDrag                            EQU        2
  131. wInGrow                            EQU        3
  132. wInGoAway                        EQU        4
  133. wInZoomIn                        EQU        5
  134. wInZoomOut                        EQU        6
  135.  
  136. ;
  137. ; pascal RgnHandle GetGrayRgn(void)
  138. ;
  139.     IF ¬ GENERATINGCFM THEN
  140.         Macro
  141.         GetGrayRgn           &dest=(sp)
  142.         move.l               $09EE,&dest
  143.         EndM
  144.     ELSE
  145.         IMPORT_CFM_FUNCTION    GetGrayRgn
  146.     ENDIF
  147.  
  148. WinCTab                 RECORD    0
  149. wCSeed                     ds.l   1        ; offset: $0 (0)        ;reserved
  150. wCReserved                 ds.w   1        ; offset: $4 (4)        ;reserved
  151. ctSize                     ds.w   1        ; offset: $6 (6)        ;usually 4 for windows
  152. ctTable                     ds.b   5 * ColorSpec.sizeof ; offset: $8 (8)
  153. sizeof                     EQU *            ; size:   $30 (48)
  154.                         ENDR
  155.  
  156. ; typedef struct WinCTab     WinCTab
  157. ; typedef WinCTab             *WCTabPtr, **WCTabHandle
  158. ;
  159. ; pascal void InitWindows(void)
  160. ;
  161.     IF ¬ GENERATINGCFM THEN
  162.         _InitWindows:    OPWORD    $A912
  163.     ELSE
  164.         IMPORT_CFM_FUNCTION    InitWindows
  165.     ENDIF
  166.  
  167. ;
  168. ; pascal void GetWMgrPort(GrafPtr *wPort)
  169. ;
  170.     IF ¬ GENERATINGCFM THEN
  171.         _GetWMgrPort:    OPWORD    $A910
  172.     ELSE
  173.         IMPORT_CFM_FUNCTION    GetWMgrPort
  174.     ENDIF
  175.  
  176. ;
  177. ; pascal WindowRef NewWindow(void *wStorage, const Rect *boundsRect, ConstStr255Param title, Boolean visible, short theProc, WindowRef behind, Boolean goAwayFlag, long refCon)
  178. ;
  179.     IF ¬ GENERATINGCFM THEN
  180.         _NewWindow:    OPWORD    $A913
  181.     ELSE
  182.         IMPORT_CFM_FUNCTION    NewWindow
  183.     ENDIF
  184.  
  185. ;
  186. ; pascal WindowRef GetNewWindow(short windowID, void *wStorage, WindowRef behind)
  187. ;
  188.     IF ¬ GENERATINGCFM THEN
  189.         _GetNewWindow:    OPWORD    $A9BD
  190.     ELSE
  191.         IMPORT_CFM_FUNCTION    GetNewWindow
  192.     ENDIF
  193.  
  194. ;
  195. ; pascal void CloseWindow(WindowRef theWindow)
  196. ;
  197.     IF ¬ GENERATINGCFM THEN
  198.         _CloseWindow:    OPWORD    $A92D
  199.     ELSE
  200.         IMPORT_CFM_FUNCTION    CloseWindow
  201.     ENDIF
  202.  
  203. ;
  204. ; pascal void DisposeWindow(WindowRef theWindow)
  205. ;
  206.     IF ¬ GENERATINGCFM THEN
  207.         _DisposeWindow:    OPWORD    $A914
  208.     ELSE
  209.         IMPORT_CFM_FUNCTION    DisposeWindow
  210.     ENDIF
  211.  
  212. ;
  213. ; pascal void GetWTitle(WindowRef theWindow, Str255 title)
  214. ;
  215.     IF ¬ GENERATINGCFM THEN
  216.         _GetWTitle:    OPWORD    $A919
  217.     ELSE
  218.         IMPORT_CFM_FUNCTION    GetWTitle
  219.     ENDIF
  220.  
  221. ;
  222. ; pascal void SelectWindow(WindowRef theWindow)
  223. ;
  224.     IF ¬ GENERATINGCFM THEN
  225.         _SelectWindow:    OPWORD    $A91F
  226.     ELSE
  227.         IMPORT_CFM_FUNCTION    SelectWindow
  228.     ENDIF
  229.  
  230. ;
  231. ; pascal void HideWindow(WindowRef theWindow)
  232. ;
  233.     IF ¬ GENERATINGCFM THEN
  234.         _HideWindow:    OPWORD    $A916
  235.     ELSE
  236.         IMPORT_CFM_FUNCTION    HideWindow
  237.     ENDIF
  238.  
  239. ;
  240. ; pascal void ShowWindow(WindowRef theWindow)
  241. ;
  242.     IF ¬ GENERATINGCFM THEN
  243.         _ShowWindow:    OPWORD    $A915
  244.     ELSE
  245.         IMPORT_CFM_FUNCTION    ShowWindow
  246.     ENDIF
  247.  
  248. ;
  249. ; pascal void ShowHide(WindowRef theWindow, Boolean showFlag)
  250. ;
  251.     IF ¬ GENERATINGCFM THEN
  252.         _ShowHide:    OPWORD    $A908
  253.     ELSE
  254.         IMPORT_CFM_FUNCTION    ShowHide
  255.     ENDIF
  256.  
  257. ;
  258. ; pascal void HiliteWindow(WindowRef theWindow, Boolean fHilite)
  259. ;
  260.     IF ¬ GENERATINGCFM THEN
  261.         _HiliteWindow:    OPWORD    $A91C
  262.     ELSE
  263.         IMPORT_CFM_FUNCTION    HiliteWindow
  264.     ENDIF
  265.  
  266. ;
  267. ; pascal void BringToFront(WindowRef theWindow)
  268. ;
  269.     IF ¬ GENERATINGCFM THEN
  270.         _BringToFront:    OPWORD    $A920
  271.     ELSE
  272.         IMPORT_CFM_FUNCTION    BringToFront
  273.     ENDIF
  274.  
  275. ;
  276. ; pascal void SendBehind(WindowRef theWindow, WindowRef behindWindow)
  277. ;
  278.     IF ¬ GENERATINGCFM THEN
  279.         _SendBehind:    OPWORD    $A921
  280.     ELSE
  281.         IMPORT_CFM_FUNCTION    SendBehind
  282.     ENDIF
  283.  
  284. ;
  285. ; pascal WindowRef FrontWindow(void)
  286. ;
  287.     IF ¬ GENERATINGCFM THEN
  288.         _FrontWindow:    OPWORD    $A924
  289.     ELSE
  290.         IMPORT_CFM_FUNCTION    FrontWindow
  291.     ENDIF
  292.  
  293. ;
  294. ; pascal void DrawGrowIcon(WindowRef theWindow)
  295. ;
  296.     IF ¬ GENERATINGCFM THEN
  297.         _DrawGrowIcon:    OPWORD    $A904
  298.     ELSE
  299.         IMPORT_CFM_FUNCTION    DrawGrowIcon
  300.     ENDIF
  301.  
  302. ;
  303. ; pascal void MoveWindow(WindowRef theWindow, short hGlobal, short vGlobal, Boolean front)
  304. ;
  305.     IF ¬ GENERATINGCFM THEN
  306.         _MoveWindow:    OPWORD    $A91B
  307.     ELSE
  308.         IMPORT_CFM_FUNCTION    MoveWindow
  309.     ENDIF
  310.  
  311. ;
  312. ; pascal void SizeWindow(WindowRef theWindow, short w, short h, Boolean fUpdate)
  313. ;
  314.     IF ¬ GENERATINGCFM THEN
  315.         _SizeWindow:    OPWORD    $A91D
  316.     ELSE
  317.         IMPORT_CFM_FUNCTION    SizeWindow
  318.     ENDIF
  319.  
  320. ;
  321. ; pascal void ZoomWindow(WindowRef theWindow, short partCode, Boolean front)
  322. ;
  323.     IF ¬ GENERATINGCFM THEN
  324.         _ZoomWindow:    OPWORD    $A83A
  325.     ELSE
  326.         IMPORT_CFM_FUNCTION    ZoomWindow
  327.     ENDIF
  328.  
  329. ;
  330. ; pascal void InvalRect(const Rect *badRect)
  331. ;
  332.     IF ¬ GENERATINGCFM THEN
  333.         _InvalRect:    OPWORD    $A928
  334.     ELSE
  335.         IMPORT_CFM_FUNCTION    InvalRect
  336.     ENDIF
  337.  
  338. ;
  339. ; pascal void InvalRgn(RgnHandle badRgn)
  340. ;
  341.     IF ¬ GENERATINGCFM THEN
  342.         _InvalRgn:    OPWORD    $A927
  343.     ELSE
  344.         IMPORT_CFM_FUNCTION    InvalRgn
  345.     ENDIF
  346.  
  347. ;
  348. ; pascal void ValidRect(const Rect *goodRect)
  349. ;
  350.     IF ¬ GENERATINGCFM THEN
  351.         _ValidRect:    OPWORD    $A92A
  352.     ELSE
  353.         IMPORT_CFM_FUNCTION    ValidRect
  354.     ENDIF
  355.  
  356. ;
  357. ; pascal void ValidRgn(RgnHandle goodRgn)
  358. ;
  359.     IF ¬ GENERATINGCFM THEN
  360.         _ValidRgn:    OPWORD    $A929
  361.     ELSE
  362.         IMPORT_CFM_FUNCTION    ValidRgn
  363.     ENDIF
  364.  
  365. ;
  366. ; pascal void BeginUpdate(WindowRef theWindow)
  367. ;
  368.     IF ¬ GENERATINGCFM THEN
  369.         _BeginUpdate:    OPWORD    $A922
  370.     ELSE
  371.         IMPORT_CFM_FUNCTION    BeginUpdate
  372.     ENDIF
  373.  
  374. ;
  375. ; pascal void EndUpdate(WindowRef theWindow)
  376. ;
  377.     IF ¬ GENERATINGCFM THEN
  378.         _EndUpdate:    OPWORD    $A923
  379.     ELSE
  380.         IMPORT_CFM_FUNCTION    EndUpdate
  381.     ENDIF
  382.  
  383. ;
  384. ; pascal void SetWRefCon(WindowRef theWindow, long data)
  385. ;
  386.     IF ¬ GENERATINGCFM THEN
  387.         _SetWRefCon:    OPWORD    $A918
  388.     ELSE
  389.         IMPORT_CFM_FUNCTION    SetWRefCon
  390.     ENDIF
  391.  
  392. ;
  393. ; pascal long GetWRefCon(WindowRef theWindow)
  394. ;
  395.     IF ¬ GENERATINGCFM THEN
  396.         _GetWRefCon:    OPWORD    $A917
  397.     ELSE
  398.         IMPORT_CFM_FUNCTION    GetWRefCon
  399.     ENDIF
  400.  
  401. ;
  402. ; pascal void SetWindowPic(WindowRef theWindow, PicHandle pic)
  403. ;
  404.     IF ¬ GENERATINGCFM THEN
  405.         _SetWindowPic:    OPWORD    $A92E
  406.     ELSE
  407.         IMPORT_CFM_FUNCTION    SetWindowPic
  408.     ENDIF
  409.  
  410. ;
  411. ; pascal PicHandle GetWindowPic(WindowRef theWindow)
  412. ;
  413.     IF ¬ GENERATINGCFM THEN
  414.         _GetWindowPic:    OPWORD    $A92F
  415.     ELSE
  416.         IMPORT_CFM_FUNCTION    GetWindowPic
  417.     ENDIF
  418.  
  419. ;
  420. ; pascal Boolean CheckUpdate(EventRecord *theEvent)
  421. ;
  422.     IF ¬ GENERATINGCFM THEN
  423.         _CheckUpdate:    OPWORD    $A911
  424.     ELSE
  425.         IMPORT_CFM_FUNCTION    CheckUpdate
  426.     ENDIF
  427.  
  428. ;
  429. ; pascal void ClipAbove(WindowRef window)
  430. ;
  431.     IF ¬ GENERATINGCFM THEN
  432.         _ClipAbove:    OPWORD    $A90B
  433.     ELSE
  434.         IMPORT_CFM_FUNCTION    ClipAbove
  435.     ENDIF
  436.  
  437. ;
  438. ; pascal void SaveOld(WindowRef window)
  439. ;
  440.     IF ¬ GENERATINGCFM THEN
  441.         _SaveOld:    OPWORD    $A90E
  442.     ELSE
  443.         IMPORT_CFM_FUNCTION    SaveOld
  444.     ENDIF
  445.  
  446. ;
  447. ; pascal void DrawNew(WindowRef window, Boolean update)
  448. ;
  449.     IF ¬ GENERATINGCFM THEN
  450.         _DrawNew:    OPWORD    $A90F
  451.     ELSE
  452.         IMPORT_CFM_FUNCTION    DrawNew
  453.     ENDIF
  454.  
  455. ;
  456. ; pascal void PaintOne(WindowRef window, RgnHandle clobberedRgn)
  457. ;
  458.     IF ¬ GENERATINGCFM THEN
  459.         _PaintOne:    OPWORD    $A90C
  460.     ELSE
  461.         IMPORT_CFM_FUNCTION    PaintOne
  462.     ENDIF
  463.  
  464. ;
  465. ; pascal void PaintBehind(WindowRef startWindow, RgnHandle clobberedRgn)
  466. ;
  467.     IF ¬ GENERATINGCFM THEN
  468.         _PaintBehind:    OPWORD    $A90D
  469.     ELSE
  470.         IMPORT_CFM_FUNCTION    PaintBehind
  471.     ENDIF
  472.  
  473. ;
  474. ; pascal void CalcVis(WindowRef window)
  475. ;
  476.     IF ¬ GENERATINGCFM THEN
  477.         _CalcVis:    OPWORD    $A909
  478.     ELSE
  479.         IMPORT_CFM_FUNCTION    CalcVis
  480.     ENDIF
  481.  
  482. ;
  483. ; pascal void CalcVisBehind(WindowRef startWindow, RgnHandle clobberedRgn)
  484. ;
  485.     IF ¬ GENERATINGCFM THEN
  486.         _CalcVisBehind:    OPWORD    $A90A
  487.     ELSE
  488.         IMPORT_CFM_FUNCTION    CalcVisBehind
  489.     ENDIF
  490.  
  491. ;
  492. ; pascal long GrowWindow(WindowRef theWindow, Point startPt, const Rect *bBox)
  493. ;
  494.     IF ¬ GENERATINGCFM THEN
  495.         _GrowWindow:    OPWORD    $A92B
  496.     ELSE
  497.         IMPORT_CFM_FUNCTION    GrowWindow
  498.     ENDIF
  499.  
  500. ;
  501. ; pascal short FindWindow(Point thePoint, WindowRef *theWindow)
  502. ;
  503.     IF ¬ GENERATINGCFM THEN
  504.         _FindWindow:    OPWORD    $A92C
  505.     ELSE
  506.         IMPORT_CFM_FUNCTION    FindWindow
  507.     ENDIF
  508.  
  509. ;
  510. ; pascal long PinRect(const Rect *theRect, Point thePt)
  511. ;
  512.     IF ¬ GENERATINGCFM THEN
  513.         _PinRect:    OPWORD    $A94E
  514.     ELSE
  515.         IMPORT_CFM_FUNCTION    PinRect
  516.     ENDIF
  517.  
  518. ;
  519. ; pascal long DragGrayRgn(RgnHandle theRgn, Point startPt, const Rect *limitRect, const Rect *slopRect, short axis, DragGrayRgnUPP actionProc)
  520. ;
  521.     IF ¬ GENERATINGCFM THEN
  522.         _DragGrayRgn:    OPWORD    $A905
  523.     ELSE
  524.         IMPORT_CFM_FUNCTION    DragGrayRgn
  525.     ENDIF
  526.  
  527. ;
  528. ; pascal long DragTheRgn(RgnHandle theRgn, Point startPt, const Rect *limitRect, const Rect *slopRect, short axis, DragGrayRgnUPP actionProc)
  529. ;
  530.     IF ¬ GENERATINGCFM THEN
  531.         _DragTheRgn:    OPWORD    $A926
  532.     ELSE
  533.         IMPORT_CFM_FUNCTION    DragTheRgn
  534.     ENDIF
  535.  
  536. ;
  537. ; pascal Boolean TrackBox(WindowRef theWindow, Point thePt, short partCode)
  538. ;
  539.     IF ¬ GENERATINGCFM THEN
  540.         _TrackBox:    OPWORD    $A83B
  541.     ELSE
  542.         IMPORT_CFM_FUNCTION    TrackBox
  543.     ENDIF
  544.  
  545. ;
  546. ; pascal void GetCWMgrPort(CGrafPtr *wMgrCPort)
  547. ;
  548.     IF ¬ GENERATINGCFM THEN
  549.         _GetCWMgrPort:    OPWORD    $AA48
  550.     ELSE
  551.         IMPORT_CFM_FUNCTION    GetCWMgrPort
  552.     ENDIF
  553.  
  554. ;
  555. ; pascal void SetWinColor(WindowRef theWindow, WCTabHandle newColorTable)
  556. ;
  557.     IF ¬ GENERATINGCFM THEN
  558.         _SetWinColor:    OPWORD    $AA41
  559.     ELSE
  560.         IMPORT_CFM_FUNCTION    SetWinColor
  561.     ENDIF
  562.  
  563. ;
  564. ; pascal void SetDeskCPat(PixPatHandle deskPixPat)
  565. ;
  566.     IF ¬ GENERATINGCFM THEN
  567.         _SetDeskCPat:    OPWORD    $AA47
  568.     ELSE
  569.         IMPORT_CFM_FUNCTION    SetDeskCPat
  570.     ENDIF
  571.  
  572. ;
  573. ; pascal WindowRef NewCWindow(void *wStorage, const Rect *boundsRect, ConstStr255Param title, Boolean visible, short procID, WindowRef behind, Boolean goAwayFlag, long refCon)
  574. ;
  575.     IF ¬ GENERATINGCFM THEN
  576.         _NewCWindow:    OPWORD    $AA45
  577.     ELSE
  578.         IMPORT_CFM_FUNCTION    NewCWindow
  579.     ENDIF
  580.  
  581. ;
  582. ; pascal WindowRef GetNewCWindow(short windowID, void *wStorage, WindowRef behind)
  583. ;
  584.     IF ¬ GENERATINGCFM THEN
  585.         _GetNewCWindow:    OPWORD    $AA46
  586.     ELSE
  587.         IMPORT_CFM_FUNCTION    GetNewCWindow
  588.     ENDIF
  589.  
  590. ;
  591. ; pascal short GetWVariant(WindowRef theWindow)
  592. ;
  593.     IF ¬ GENERATINGCFM THEN
  594.         _GetWVariant:    OPWORD    $A80A
  595.     ELSE
  596.         IMPORT_CFM_FUNCTION    GetWVariant
  597.     ENDIF
  598.  
  599. ;
  600. ; pascal void SetWTitle(WindowRef theWindow, ConstStr255Param title)
  601. ;
  602.     IF ¬ GENERATINGCFM THEN
  603.         _SetWTitle:    OPWORD    $A91A
  604.     ELSE
  605.         IMPORT_CFM_FUNCTION    SetWTitle
  606.     ENDIF
  607.  
  608. ;
  609. ; pascal Boolean TrackGoAway(WindowRef theWindow, Point thePt)
  610. ;
  611.     IF ¬ GENERATINGCFM THEN
  612.         _TrackGoAway:    OPWORD    $A91E
  613.     ELSE
  614.         IMPORT_CFM_FUNCTION    TrackGoAway
  615.     ENDIF
  616.  
  617. ;
  618. ; pascal void DragWindow(WindowRef theWindow, Point startPt, const Rect *boundsRect)
  619. ;
  620.     IF ¬ GENERATINGCFM THEN
  621.         _DragWindow:    OPWORD    $A925
  622.     ELSE
  623.         IMPORT_CFM_FUNCTION    DragWindow
  624.     ENDIF
  625.  
  626.     IF ¬ STRICT_WINDOWS  THEN
  627. ; typedef struct WindowRecord  WindowRecord
  628. ; typedef WindowRecord         *WindowPeek
  629. WindowRecord             RECORD    0
  630. port                     ds     GrafPort ; offset: $0 (0)
  631. windowKind                 ds.w   1        ; offset: $6C (108)
  632. visible                     ds.b   1        ; offset: $6E (110)
  633. hilited                     ds.b   1        ; offset: $6F (111)
  634. goAwayFlag                 ds.b   1        ; offset: $70 (112)
  635. spareFlag                 ds.b   1        ; offset: $71 (113)
  636. strucRgn                 ds.l   1        ; offset: $72 (114)
  637. contRgn                     ds.l   1        ; offset: $76 (118)
  638. updateRgn                 ds.l   1        ; offset: $7A (122)
  639. windowDefProc             ds.l   1        ; offset: $7E (126)
  640. dataHandle                 ds.l   1        ; offset: $82 (130)
  641. titleHandle                 ds.l   1        ; offset: $86 (134)
  642. titleWidth                 ds.w   1        ; offset: $8A (138)
  643. controlList                 ds.l   1        ; offset: $8C (140)
  644. nextWindow                 ds.l   1        ; offset: $90 (144)
  645. windowPic                 ds.l   1        ; offset: $94 (148)
  646. refCon                     ds.l   1        ; offset: $98 (152)
  647. sizeof                     EQU *            ; size:   $9C (156)
  648.                         ENDR
  649.  
  650. ; typedef struct CWindowRecord  CWindowRecord
  651. ; typedef CWindowRecord     *CWindowPeek
  652. CWindowRecord             RECORD    0
  653. port                     ds     CGrafPort ; offset: $0 (0)
  654. windowKind                 ds.w   1        ; offset: $6C (108)
  655. visible                     ds.b   1        ; offset: $6E (110)
  656. hilited                     ds.b   1        ; offset: $6F (111)
  657. goAwayFlag                 ds.b   1        ; offset: $70 (112)
  658. spareFlag                 ds.b   1        ; offset: $71 (113)
  659. strucRgn                 ds.l   1        ; offset: $72 (114)
  660. contRgn                     ds.l   1        ; offset: $76 (118)
  661. updateRgn                 ds.l   1        ; offset: $7A (122)
  662. windowDefProc             ds.l   1        ; offset: $7E (126)
  663. dataHandle                 ds.l   1        ; offset: $82 (130)
  664. titleHandle                 ds.l   1        ; offset: $86 (134)
  665. titleWidth                 ds.w   1        ; offset: $8A (138)
  666. controlList                 ds.l   1        ; offset: $8C (140)
  667. nextWindow                 ds.l   1        ; offset: $90 (144)
  668. windowPic                 ds.l   1        ; offset: $94 (148)
  669. refCon                     ds.l   1        ; offset: $98 (152)
  670. sizeof                     EQU *            ; size:   $9C (156)
  671.                         ENDR
  672.  
  673. WStateData                 RECORD    0
  674. userState                 ds     Rect    ; offset: $0 (0)        ;user state
  675. stdState                 ds     Rect    ; offset: $8 (8)        ;standard state
  676. sizeof                     EQU *            ; size:   $10 (16)
  677.                         ENDR
  678.  
  679. ; typedef struct WStateData  WStateData
  680. ; typedef WStateData         *WStateDataPtr, **WStateDataHandle
  681. ; typedef struct AuxWinRec     AuxWinRec
  682. ; typedef AuxWinRec         *AuxWinPtr, **AuxWinHandle
  683. AuxWinRec                 RECORD    0
  684. awNext                     ds.l   1        ; offset: $0 (0)        ;handle to next AuxWinRec
  685. awOwner                     ds.l   1        ; offset: $4 (4)        ;ptr to window 
  686. awCTable                 ds.l   1        ; offset: $8 (8)        ;color table for this window
  687. reserved                 ds.l   1        ; offset: $C (12)        ;  
  688. awFlags                     ds.l   1        ; offset: $10 (16)        ;reserved for expansion
  689. awReserved                 ds.l   1        ; offset: $14 (20)        ;reserved for expansion
  690. awRefCon                 ds.l   1        ; offset: $18 (24)        ;user Constant
  691. sizeof                     EQU *            ; size:   $1C (28)
  692.                         ENDR
  693.  
  694. ;
  695. ; pascal Boolean GetAuxWin(WindowRef theWindow, AuxWinHandle *awHndl)
  696. ;
  697.     IF ¬ GENERATINGCFM THEN
  698.         _GetAuxWin:    OPWORD    $AA42
  699.     ELSE
  700.         IMPORT_CFM_FUNCTION    GetAuxWin
  701.     ENDIF
  702.  
  703.  
  704. wContentColor                    EQU        0
  705. wFrameColor                        EQU        1
  706. wTextColor                        EQU        2
  707. wHiliteColor                    EQU        3
  708. wTitleBarColor                    EQU        4
  709.  
  710.     ENDIF
  711.     ENDIF ; __WINDOWS__
  712.